package com.thinkSoft.Location.Helpers;

import android.content.Context;
import android.util.Log;

public class Debugger {
	Context ctx = null;
	private static final Boolean _DEBUG = false;
	public Debugger(Context context){
		ctx = context;
	}
	public Debugger(){
		ctx = null;
	}
	
	public void postLog(int type, String tag, String text){
		if (tag.equals(""))
			tag = "Voo";
		if (_DEBUG){
			switch(type){
				case Log.DEBUG:
					Log.d(tag,text);
					break;
				case Log.ERROR:
					Log.e(tag,text);
					break;
				case Log.INFO:
					Log.i(tag, text);
					break;
				case Log.VERBOSE:
					Log.v(tag, text);
					break;
				case Log.WARN:
					Log.w(tag, text);
					break;
				default:
					Log.d(tag, text);
					break;
			}
		}
	}

}
